package study01;

public class TestDemo {
    public static void main(String[] args) {

        // 拿到内部类实例化出来的对象
        //外部类名.内部类名 对象名 = new 外部类型().new 内部类型()；
        Student s1 = new Student();
        Student.Inner inner1 = new Student().new Inner();
        inner1.printLevel();

        Student stu2 = new Student();
        Student.Inner inner2 = stu2.new Inner();
        stu2.score = 98;
        inner2.printLevel();

    }

}
